<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@page import = "com.shopping.User" %>

<%@ include  file="usersessioncheck.jsp"%>

<%
	User u = (User)session.getAttribute("user");

 %>




<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人资料修改</title>
</head>
<body>
	
	<!-- action="register.jsp"提交到自身来 -->
	<form action="usermodify.jsp" method="post"  name="userform">
		
		<input type="hidden" name="action" value="modify">
	
		<table width="760" align="center" border="2">
			<tr>
				<td colspan="2" align="center"> 
					用户注册 
				</td>
				
			</tr>
			
			<tr>
				<td>
					用户名
				</td>
				<td>
					<input type="text" size="15"  maxlength="15" name="username" value="<%=u.getUsername() %>">
				</td>
			</tr>
			
			
			<tr>
				<td>
					电话
				</td>
				<td>
					<input type="text" size="15"  maxlength="15" name="phone" value="<%=u.getPhone() %>">
				</td>
			</tr>
			
			<tr>
				<td>
					地址
				</td>
				<td>
					<textarea rows="5" cols="30" name="addr" ><%=u.getAddr() %>  </textarea>
				</td>
			</tr>
			
			<tr>
				<td colspan="2">
					<input type="submit" value="提交">
					<input type="reset" value="清空" >
				</td>
				
			</tr>
		</table>
	
	</form>
	
	
</body>
</html>